/*
    Copyright 2013 Jonathan Kaschak

    This file is part of TerraTamper.

    TerraTamper is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    TerraTamper is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with TerraTamper.  If not, see <http://www.gnu.org/licenses/>.
*/

package Packets;

import static Main.TerrariaProtocol.*;

public class PlayerInfo {
    public static int packet_id = 4;
    
    static int player = 5;
    static int name = 30;
    
    public static int GetPlayerID(byte[] data) {
        return data[player];
    }
    public static String GetName(byte[] data) {
        return getEndString(data, name);
    }
}
